From c922967155faa9e895567ead82000ac1fde7fbee Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 2 Mar 2012 02:16:30 +0100 Subject: [PATCH] reftests: Add a rendering test for sibling matching --- tests/reftests/Makefile.am | 3 + tests/reftests/css-match-siblings.css | 19 ++++++ tests/reftests/css-match-siblings.ref.ui | 79 ++++++++++++++++++++++++ tests/reftests/css-match-siblings.ui | 75 ++++++++++++++++++++++ 4 files changed, 176 insertions(+) create mode 100644 tests/reftests/css-match-siblings.css create mode 100644 tests/reftests/css-match-siblings.ref.ui create mode 100644 tests/reftests/css-match-siblings.ui diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am index ec63260101..2974cc0667 100644 --- a/tests/reftests/Makefile.am +++ b/tests/reftests/Makefile.am @@ -111,6 +111,9 @@ EXTRA_DIST += \ css-match-regions.css \ css-match-regions.ref.ui \ css-match-regions.ui \ + css-match-siblings.css \ + css-match-siblings.ref.ui \ + css-match-siblings.ui \ css-match-style-property-order.css \ css-match-style-property-order.ref.ui \ css-match-style-property-order.ui \ diff --git a/tests/reftests/css-match-siblings.css b/tests/reftests/css-match-siblings.css new file mode 100644 index 0000000000..6529bcb723 --- /dev/null +++ b/tests/reftests/css-match-siblings.css @@ -0,0 +1,19 @@ +* + *, +#red { + color: red +} + +* ~ * ~ GtkLabel, +#green { + color: green; +} + +* ~ * + GtkLabel ~ *, +#blue { + color: blue; +} + +* + GtkLabel ~ * ~ GtkLabel + *, +#purple { + color: purple; +} diff --git a/tests/reftests/css-match-siblings.ref.ui b/tests/reftests/css-match-siblings.ref.ui new file mode 100644 index 0000000000..08a5fff9d2 --- /dev/null +++ b/tests/reftests/css-match-siblings.ref.ui @@ -0,0 +1,79 @@ + + + + + False + popup + + + True + False + vertical + + + True + False + normal + + + False + True + 0 + + + + + True + False + Red + red + + + False + True + 1 + + + + + True + False + Green + green + + + False + True + 2 + + + + + True + False + Blue + blue + + + False + True + 3 + + + + + True + False + Purple + purple + + + False + True + 4 + + + + + + diff --git a/tests/reftests/css-match-siblings.ui b/tests/reftests/css-match-siblings.ui new file mode 100644 index 0000000000..4c7685d912 --- /dev/null +++ b/tests/reftests/css-match-siblings.ui @@ -0,0 +1,75 @@ + + + + + False + popup + + + True + False + vertical + + + True + False + normal + + + False + True + 0 + + + + + True + False + Red + + + False + True + 1 + + + + + True + False + Green + + + False + True + 2 + + + + + True + False + Blue + + + False + True + 3 + + + + + True + False + Purple + + + False + True + 4 + + + + + + -- 2.30.2